<div id="addGovOldPersonModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
  aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-body">
        <h3 class="m-t-none m-b ">添加老年人</h3>
        <div class="ibox-content">
          <div>
            <div>

              <div class="form-group row">
                <label class="col-sm-2 col-form-label">养老院</label>
                <div class="col-sm-4">
                    <select class="custom-select" v-model="addGovOldPersonInfo.govCommunityId" >
                      <option selected disabled value="">请选择所属养老院</option>
                      <option v-for="(item,index) in addGovOldPersonInfo.govCommunitys" :value="item.govCommunityId">
                          {{item.communityName}}</option>
                      </select>
                </div>
                <label class="col-sm-2 col-form-label">老人类型</label>
                <div class="col-sm-4">
                    <select class="custom-select" v-model="addGovOldPersonInfo.typeId" >
                      <option selected disabled value="">请选择老人类型</option>
                      <option v-for="(item,index) in addGovOldPersonInfo.govOldPersonTypes" :value="item.typeId">
                          {{item.typeName}}</option>
                      </select>
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">姓名</label>
                <div class="col-sm-4">
                  <input v-model="addGovOldPersonInfo.personName" type="text" placeholder="必填，请填写姓名"
                    class="form-control">
                </div>
                <label class="col-sm-2 col-form-label">电话</label>
                <div class="col-sm-4">
                  <input v-model="addGovOldPersonInfo.personTel" type="text" placeholder="必填，请填写电话"
                    class="form-control">
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">年龄</label>
                <div class="col-sm-4">
                  <input v-model="addGovOldPersonInfo.personAge" type="text" placeholder="必填，请填写年龄"
                    class="form-control">
                </div>
                <label class="col-sm-2 col-form-label">身份证号码</label>
                <div class="col-sm-4">
                  <input v-model="addGovOldPersonInfo.idCard" type="text" placeholder="必填，请填写证件号码" class="form-control">
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">生日</label>
                <div class="col-sm-4">
                  <input v-model="addGovOldPersonInfo.birthday" type="text" placeholder="必填，请填写生日"
                    class="form-control addBirthday">
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">性别</label>
                <div class="col-sm-4">
                  <select class="custom-select" v-model="addGovOldPersonInfo.personSex">
                    <option selected disabled value="">必填，请选择性别</option>
                    <option value="0">女</option>
                    <option value="1">男</option>
                  </select>
                </div>
                <label class="col-sm-2 col-form-label">民族</label>
                <div class="col-sm-4">
                  <select class="custom-select" v-model="addGovOldPersonInfo.nation">
                    <option selected disabled value="">必填，请选择民族</option>
                    <option v-for="(item,index) in addGovOldPersonInfo.nationData" :key="index"
                      :value="item.name">{{item.name}}</option>
                  </select>
                </div>
              </div>

              <div class="form-group row">
                <label class="col-sm-2 col-form-label">家人联系人</label>
                <div class="col-sm-4">
                  <input v-model="addGovOldPersonInfo.contactPerson" type="text" placeholder="必填，请填写家人联系人"
                    class="form-control">
                </div>
                <label class="col-sm-2 col-form-label">家人联系电话</label>
                <div class="col-sm-4">
                  <input v-model="addGovOldPersonInfo.contactTel" type="text" placeholder="必填，请填写家人联系电话"
                    class="form-control">
                </div>
              </div>
          
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">服务人</label>
                <div class="col-sm-4">
                  <input v-model="addGovOldPersonInfo.servPerson" type="text" placeholder="必填，请填写服务人"
                    class="form-control">
                </div>
                <label class="col-sm-2 col-form-label">服务人电话</label>
                <div class="col-sm-4">
                  <input v-model="addGovOldPersonInfo.servTel" type="text" placeholder="必填，请填写服务人电话"
                    class="form-control">
                </div>
              </div>
              <!-- <div class="form-group row">
                <label class="col-sm-2 col-form-label">初始时间(小时)</label>
                <div class="col-sm-10">
                  <input v-model="addGovOldPersonInfo.timeAmount" type="text" placeholder="必填，请填写初始时间"
                    class="form-control">
                    <li style="color: crimson;">请确认后填写，该金额会直接入老人时间账号，涉及账务信息，第一次设置后不可修改</li>
                </div>
              </div> -->
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">备注</label>
                <div class="col-sm-10">
                  <input v-model="addGovOldPersonInfo.ramark" type="text" placeholder="必填，请填写备注" class="form-control">
                </div>
              </div>

              <div class="ibox-content">
                <button class="btn btn-primary float-right" type="button" v-on:click="saveGovOldPersonInfo()"><i
                    class="fa fa-check"></i>&nbsp;保存</button>
                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                  data-dismiss="modal">取消</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>